<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Convert a variant into another type &quot;in-place&quot;</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.variant-round.html">variant_round</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.variant-set.html">variant_set</a></div>
 <div class="up"><a href="ref.com.html">COM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.variant-set-type" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_set_type</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">variant_set_type</span> &mdash; <span class="dc-title">Convert a variant into another type &quot;in-place&quot;</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.variant-set-type-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>variant_set_type</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.variant.html" class="type variant">variant</a></span> <code class="parameter">$variant</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$type</code></span>
   )</div>

  <p class="para rdfs-comment">
   This function is similar to <span class="function"><a href="function.variant-cast.html" class="function">variant_cast()</a></span> except that
   the variant is modified &quot;in-place&quot;; no new variant is created. The
   parameters for this function have identical meaning to those of
   <span class="function"><a href="function.variant-cast.html" class="function">variant_cast()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-set-type-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">variant</code></em></dt>

     <dd>

      <p class="para">
       The variant.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">type</code></em></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-set-type-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.variant-set-type-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.variant-cast.html" class="function" rel="rdfs-seeAlso">variant_cast()</a> - Convert a variant into a new variant object of another type</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.variant-round.html">variant_round</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.variant-set.html">variant_set</a></div>
 <div class="up"><a href="ref.com.html">COM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
